Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throwing more specific Exception on failure to retrieve result. #166

Merged
merged 6 commits into from
Jan 7, 2022

Conversation

ulmentflam
Copy link
Contributor

This is a small change that throws a custom exception if the RPC client has no result, rather than the generic Exception class. This way, third parties can catch the specific exception rather than handling the broad Exception class. It also updates the linter to allow an increased branch and statement length, as well as add additional single letter variables.

@codecov
Copy link

codecov bot commented Jan 7, 2022

Codecov Report

Merging #166 (3237979) into master (07ec29e) will increase coverage by 0.00%.
The diff coverage is 83.33%.

@@           Coverage Diff           @@
##           master     #166   +/-   ##
=======================================
  Coverage   91.06%   91.06%           
=======================================
  Files          37       37           
  Lines        2697     2698    +1     
=======================================
+ Hits         2456     2457    +1     
  Misses        241      241           

Copy link
Owner

@michaelhly michaelhly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@michaelhly michaelhly merged commit f996c07 into michaelhly:master Jan 7, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants